<div class='formulaire_spip ajax'>
    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
    
    <form method='post' action='' id="form_#FORM"><div>
    <input type="hidden" value="" name="id_order_product_delete" id="id_order_product_delete" />    
			#ACTION_FORMULAIRE{#ENV{action}}
   <B_products>
<div class="liste-elements products">
<table class='spip liste'>
<caption><strong class="caption"><:ecatalogue:products_list:></strong></caption>
	<thead>
		<tr class='first_row'>
			<th class='id_article'>ID</th>            
            <th class='sku'><:ecatalogue:sku:></th>
			<th class='titre'><:ecatalogue:product_name:></th>
			<th class='quantity'><:alohacart:quantity:></th>
			<th class='price'><:alohacart:price_one:></th>
            <th class='total_price'><:alohacart:total_price:></th>
            <th>&nbsp;</th>			
		</tr>
	</thead>
	<tbody>
	<BOUCLE_products(ALOHACART_ORDERS_PRODUCTS){id_order=#ENV{id_order}}{par num titre}>
		<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
			<td class='id_article'>#ID_ARTICLE</td>            
            <td class='sku'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#SKU</a></td>
			<td class='titre'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#TITRE</a></td>
            <td class='quantity'>#QUANTITY</td>            			
			<td class='price'>#PRICE</td>
            <td class='total_price'>#TOTAL_PRICE</td>
            <td class='delete'><a href="javascript:;" onclick="jQuery('#form_#FORM input#id_order_product_delete').val(jQuery(this).attr('data-id_order_product')); jQuery('#form_#FORM').submit();"
                data-id_order_product="#ID_ORDER_PRODUCT"><:alohacart:delete:></a></td>			
		</tr>        
	</BOUCLE_products>
	</tbody>
</table>
</div>
</B_products>
<div class="liste-elements products"><strong class="caption"><:ecatalogue:no_products:></strong></div>
<//B_products>
			
            
            <h3 style="text-align: center;"><:alohacart:add_product:></h3>
			<ul>        
                [(#SAISIE{selecteur_article, id_article_add,
				        label=<:alohacart:select_product:>,
				        multiple=0})]
                        
                [(#SAISIE{input, quantity, label=<:alohacart:quantity:>:, defaut=1})]                        
			</ul>
			
			<p class='boutons'>
				<input type='submit' name='save_submit' value='<:bouton_enregistrer:>' />
			</p>
            
		</div></form>
    
</div>